package me.ywd.ribbon;

import me.ywd.ribbon.common.ExcludeAnnotation;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * @Author Ye_Wenda
 * @Date 9/13/2017
 */
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = {ExcludeAnnotation.class})})
public class RibbonApp {

    public static void main(String[] args) {
        new SpringApplicationBuilder(RibbonApp.class).web(true).run(args);
    }

}
